package com.hdax.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hdax.entity.CusOrder;
import com.hdax.dao.CusOrderMapper;
import com.hdax.service.CusOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 订单表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-03-22
 */
@Service
public class CusOrderServiceImpl extends ServiceImpl<CusOrderMapper, CusOrder> implements CusOrderService {
    @Autowired
    private CusOrderMapper cusOrderMapper;

    @Override
    public IPage<CusOrder> findCusOrder(IPage<?> page, Map map) {
        return cusOrderMapper.findCusOrder(page,map);
    }

    @Override
    public CusOrder findCusOrderById(Integer id) {
        return cusOrderMapper.findCusOrderById(id);
    }

    @Override
    public Integer findThisMonthCusOrderAddCount() {
        return cusOrderMapper.findThisMonthCusOrderAddCount();
    }

    @Override
    public Integer findCusOrderCount() {
        return cusOrderMapper.findCusOrderCount();
    }

    @Override
    public Long findThisMonthCusOrderPrice() {
        return cusOrderMapper.findThisMonthCusOrderPrice();
    }

    @Override
    public Long findCusOrderPrice() {
        return cusOrderMapper.findCusOrderPrice();
    }

    @Override
    public Float findCusOrderChainCompare() {
        return cusOrderMapper.findCusOrderChainCompare();
    }

    @Override
    public Map findThisYearCusOrderIncre() {
        return cusOrderMapper.findThisYearCusOrderIncre();
    }
}
